package com.swu.pad.comment.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.swu.pad.comment.entity.FbComment;

public interface FbCommentDao extends JpaRepository<FbComment, String> {

	/**
	 * 根据作者ID获取评论列表
	 * @param authorId
	 * @return
	 */
	public List<FbComment> findFbCommentByAuthorId(String authorId);
	public List<FbComment> findFbCommentByAuthorIdAndPadId(String authorId,String padId);

	/**
	 * 根据评论者ID获取评论列表
	 * @param commenterId
	 * @return
	 */
	public List<FbComment> findFbCommentByCommenterId(String commenterId);
	public List<FbComment> findFbCommentByCommenterIdAndPadId(String commenterId,String padId);

	/**
	 * 根据类型获取评论列表
	 * @param type
	 * @return
	 */
	public List<FbComment> findByTypeAndAuthorId(String type, String authorId);
	public List<FbComment> findByFeedbackTypeAndAuthorIdAndPadId(String feedbackType, String authorId,String padID);

	public List<FbComment> findByPadId(String padId);

	public List<FbComment> findByPadIdAndType(String padId, String type);

	public List<FbComment> findByPadIdAndTypeAndAuthorIdAndCommenterId(String padId, String type, String authorId, String commenterId);
}